Skip to content

Add WinZip AES encryption support#32

Merged
ananthakumaran merged 14 commits into
ananthakumaran:masterfrom
fishtreesugar:winzip-aes
Jul 9, 2025
Merged

Add WinZip AES encryption support#32
ananthakumaran merged 14 commits into
ananthakumaran:masterfrom
fishtreesugar:winzip-aes

Conversation

@fishtreesugar
Copy link
Copy Markdown
Contributor

This PR adds an initial implementation of WinZip-style AES encryption (spec here: https://www.winzip.com/en/support/aes-encryption). I’ve only done quick manual tests so far—macOS Archive Utility and the 7z CLI—because our current test tools don’t understand the WinZip AES extras yet.

If the maintainers are on board with this feature, I’d love any ideas for beefing up the test coverage.

@ananthakumaran
Copy link
Copy Markdown
Owner

If the maintainers are on board with this feature, I’d love any ideas for beefing up the test coverage.

Traditional encryption is deprecated, and I added it only because we had an old workflow that used traditional passwords. I would love to have proper encryption support.

I’d love any ideas for beefing up the test coverage.

Please feel free to add 7z cli dependency on CI

@fishtreesugar fishtreesugar marked this pull request as ready for review June 24, 2025 00:44
Comment thread lib/zstream/encryption_coder/aes.ex
Comment thread lib/zstream/encryption_coder/aes.ex Outdated
Comment thread lib/zstream/encryption_coder/aes.ex Outdated
Comment thread test/zstream_test.exs Outdated
@fishtreesugar
Copy link
Copy Markdown
Contributor Author

@ananthakumaran Please let me know if you have any more comments.

Comment thread lib/zstream/encryption_coder/aes.ex Outdated
Comment thread lib/zstream/protocol.ex
Comment thread lib/zstream/protocol.ex
Comment thread test/zstream_test.exs Outdated
Copy link
Copy Markdown
Owner

@ananthakumaran ananthakumaran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a few nitpicks, otherwise the changes lgtm

@fishtreesugar
Copy link
Copy Markdown
Contributor Author

@ananthakumaran Done. I look forward to seeing the new release after it is merged into master.

@ananthakumaran ananthakumaran merged commit 28b8bab into ananthakumaran:master Jul 9, 2025
5 checks passed
@fishtreesugar fishtreesugar deleted the winzip-aes branch July 9, 2025 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants